<!DOCTYPE html>
<!--suppress ALL -->
<html lang="zh-cn">
<!--<html lang="en" xmlns:th="http://www.thymeleaf.org">-->
<head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
    <title></title>
    <script src="/properties/config.js"></script>

    <!-- 引入layui样式 -->
    <link rel="stylesheet" href="/plugins/layui/css/layui.css" media="all"/>



    <!--引入layui.js-->
    <script src="/plugins/layui/layui.js"></script>
    <!--引入axios.js 用于ajax调用-->
    <!--<script src="/plugins/axios/axios.min.js"></script>-->



    <!--表格样式-->
    <!--<link rel="stylesheet" href="/Components/Table/Table.css">-->

    <!-- 引入jQuery，必须在appToken.js 之前引入 -->
    <script src="/plugins/layui/extend/modules/jquery.js"></script>
    <!--<script src="/plugins/layui/extend/modules/jquery_ajax_blob_arraybuffer.js"></script>-->
    <!-- 设置全局请求头:app、Authorization -->
    <script src="/build/js/appToken.js"></script>

    <!--引入公共的一些方法-->
    <script src="/js/common.js"></script>
    <script>
        function getUrlParam(name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); // 构造一个含有目标参数的正则表达式对象
            var r = window.location.search.substr(1).match(reg);  // 匹配目标参数
            if (r != null) return unescape(r[2]);
            return null; // 返回参数值
        }

        var code = getUrlParam('code');
        layui.config({
            base: '/plugins/layui/extend/modules/',
            version: false
        }).use(['table', 'jquery', 'ht_cookie', 'ht_config','ht_ajax'], function () {
            var $ = layui.jquery;
            var config = layui.ht_config;
            var cookie = layui.ht_cookie;
            console.log("======code",code);
            $.ajax({
                type: "GET",
                dataType:"html",
                url: config.basePath1 + "bu/report?code="+code,
                headers: {
                    app:"RP",
                    Authorization:"Bearer "+cookie.getToken()
                },
                async: false,
                success: function (result) {
                    console.log("========result",result);
                    $("#report1").append(result);
                }
            })
        })
    </script>
</head>
<body>
<div style="margin-top: 20px;" id="report1">
</div>

<!--<iframe src="http://172.16.200.110:30111//rp-app-service/bu/report?gateway=1&code=267027392029040640" style="width: 100%;height: 100%"></iframe>-->
</body>

</html>